import request from '@/utils/request'

// 设置用量区间接口
export function usageRange(data) {
  return request({
    url: '/basedata/usageRange',
    method: 'post',
    data: data
  })
}

// 获取用量区间参数接口
export function getUsageRange(tenantId, warnTargetType) {
  return request({
    url: '/basedata/usageRange/' + tenantId + '/' + warnTargetType,
    method: 'get',
  })
}

// 删除用量区间接口
export function deleteUsageRange(data) {
  return request({
    url: '/basedata/usageRange',
    method: 'delete',
    data: data
  })
}

// 修改用量区间策略名称接口
export function updateStrategyName(data) {
  return request({
    url: '/basedata/usageRange',
    method: 'put',
    data: data
  })
}

// 批量修改户表用量区间策略
export function editStrategyBatchXb(data) {
  return request({
    url: '/basedata/terminalxb/editStrategyBatch',
    method: 'post',
    data: data
  })
}
// 批量修改大用户表用量区间策略
export function editStrategyBatchDb(data) {
  return request({
    url: '/basedata/terminalsdb/editStrategyBatch',
    method: 'post',
    data: data
  })
}
